from chain_pymysql import imysql

imysql.connect({
    'host': 'polar0712-xiami.mysql.polardb.rds.aliyuncs.com',
    'user': 'xiami',
    'password': 'Sf19941003',
    'database': 'lj_document'
})

def add_log(log):
    imysql.table('lj_ocr_text').insert_one(log)

def del_log(log):
    imysql.table('lj_ocr_text').delete(log)